extends ../../layout/layout

block self_js
  script(src="../../js/module/ad/textSetting.js")

block self_css
  link(rel="stylesheet", href="../../css/ad/textSetting.css")

block vendor_css
  link(rel='stylesheet', type="text/css", href="../../vendor/jqGrid/css/ui.jqgrid-bootstrap.css")

block vendor_js
  script(src="../../vendor/jqGrid/js/jquery.jqGrid.js")
  script(src="../../vendor/jqGrid/js/i18n/grid.locale-cn.js")
  script(src="../../vendor/laydate/laydate.js")
  script(src="../../vendor/jquery-validation-1.17.0/jquery.validate.min.js")

block content
  .content-wrapper
    .search-condition
      form#form-search
        .form-inline
          .form-group
            label.marginR10 名称：
              input.form-control.form-width100(name="")
          .form-group
            label.marginR10 状态：
              select.form-control.form-width100(name="name")
                option(value="1") 启用
                option(value="2") 禁用
          .form-group
            label.marginR10 模板类型：
              select.form-control.form-width100(name="name")
                option(value="1") 订单消息
                option(value="2") 通知消息
                option(value="3") 推广消息
          .form-group
            button.pull-right.btn.btn-default#search-btn(type="button")
              i.fa.fa-search
              span 查询
    .com-op.marginT10
      button.btn.btn-default.marginR10#btn-edit(type="button")
        //- i.fa.fa-edit
        span 修改
      button.btn.btn-default.marginR10#btn-add(type="button")
        i.fa.fa-plus
        span 新增
      button.btn.btn-default.marginR10#btn-del(type="button")
        //- i.fa.fa-?
        span 删除

    .content-body.marginT10#table-box
      table.table#table-textSetting
      #pager-textSetting

block layer
  .layer-box#layer-textSetting-add
    form.mw1200.padding20#form-textSetting-add(name="form-textSetting-add", autocomplete="off")
      +textSettingForm

  .layer-box#layer-textSetting-view
    form.mw1200.padding20#form-textSetting-view(name="form-textSetting-view", autocomplete="off")
      +textSettingForm

  .layer-box#layer-textSetting-edit
    form.mw1200.padding20#form-textSetting-edit(name="form-textSetting-edit", autocomplete="off")
      +textSettingForm

mixin textSettingForm
  .d-title
      span.text 基础设置设置
  .d-content.padding
    .row.form-row.form-row-sm
      .col-xs-12
        .form-text 名称：
        .form-container
          input.form-control.form-width200(name="")
    .row.form-row.form-row-sm
      .col-xs-12
        .form-text 状态：
        .form-container.form-inline
          input.form-control(type="checkbox" ,name="")
          span.text 关闭/开启
    .row.form-row.form-row-sm
      .col-xs-12
        .form-text 模板code：
        .form-container.form-inline
          input.form-control.form-width100(name="")
    .row.form-row.form-row-sm
      .col-xs-12
        .form-text 模板类型：
        .form-container
          select.form-control.form-width100(name="")
            option(value="1") 验证码
            option(value="2") 短信通知
            option(value="3") 推广短信
            option(value="4") 群发短信
    .row.form-row.form-row-sm
      .col-xs-12
        .form-text 参数解释：
        .form-container
          textarea.form-control(name="" placeholder="请输入参数解释")
  .d-title
    span.text 修改记录
  .d-content
    .row.form-row.form-row-sm
      .col-xs-12
        .form-text 有效期：
        .form-container
          span.text admin   @   2016-12-27 12:21:10
